#include "SelectableUtilityButton.h"
#include "UtilityPanel.h"

SelectableUtilityButton::SelectableUtilityButton(int id, UtilityPanel* panel, String title) :
	UtilityButton(id, panel, title), selected(false)
{
}

void SelectableUtilityButton::paintMore(Graphics& g)
{
	if(!selected)
		return;
	g.setColour(Colours::darkgoldenrod);
	Rectangle r(0, 0, getWidth(), getHeight());
	MiscGraphics::drawRoundedRect(g, r, 7, 3);
}

void SelectableUtilityButton::setSelected(bool isSelected)
{
	selected = isSelected;
	repaint();
}

bool SelectableUtilityButton::isSelected() {
	return selected;
}
